import httpUtil from "@/utils/httpUtil";

const addLog = (text) => {
	if (text instanceof Object || text instanceof Array) {
		text = JSON.stringify(text)
	}
	let params = {
		v1: 1,
		v2: 25,
		text
	}
	httpUtil.postReturnSource('/api/rf/addLog', params)
}

const addYouKuLog = (text) => {
	if (text instanceof Object || text instanceof Array) {
		text = JSON.stringify(text)
	}
	let params = {
		v1: 1,
		v2: 24,
		text
	}
	httpUtil.postReturnSource('/api/rf/addLog', params)
}


const addKeepLog = (text) => {
	if (text instanceof Object || text instanceof Array) {
		text = JSON.stringify(text)
	}
	let params = {
		v1: 1,
		v2: 28,
		text
	}
	httpUtil.postReturnSource('/api/rf/addLog', params)
}

const addTuanyouChezhuQuanyiLog = (text) => {
	if (text instanceof Object || text instanceof Array) {
		text = JSON.stringify(text)
	}
	let params = {
		v1: 1,
		v2: 30,
		text
	}
	httpUtil.postReturnSource('/api/rf/addLog', params)
}

const addPinzhiShenghuoLog = (text) => {
	if (text instanceof Object || text instanceof Array) {
		text = JSON.stringify(text)
	}
	let params = {
		v1: 1,
		v2: 31,
		text
	}
	httpUtil.postReturnSource('/api/rf/addLog', params)
}

const addXiaoWuGushiLog = (text) => {
	if (text instanceof Object || text instanceof Array) {
		text = JSON.stringify(text)
	}
	let params = {
		v1: 1,
		v2: 33,
		text
	}
	httpUtil.postReturnSource('/api/rf/addLog', params)
}


const addXimaLayaLog = (text) => {
	if (text instanceof Object || text instanceof Array) {
		text = JSON.stringify(text)
	}
	let params = {
		v1: 1,
		v2: 34,
		text
	}
	httpUtil.postReturnSource('/api/rf/addLog', params)
}


export default {
	addXimaLayaLog,
	addXiaoWuGushiLog,
	addLog,
	addYouKuLog,
	addKeepLog,
	addTuanyouChezhuQuanyiLog,
	addPinzhiShenghuoLog,
}